﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace DataLibrary.Utility
{
    public  class JsonHelper
    {
        public static T GetObjectByJson<T>(string Json)
        {
            JsonSerializerSettings jsetting = new JsonSerializerSettings();
            jsetting.NullValueHandling = NullValueHandling.Ignore;
            return JsonConvert.DeserializeObject<T>(Json, jsetting);
        }
    }
}
